
package com.intretech.umsin.system.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.intretech.umsin.datasource.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;


 /**
 * @version V1.0
 * 系统访问记录:sys_logininfor 对应实体类.
 * @ClassName: SysLogininfor
 * @Description: 系统访问记录:sys_logininfor 对应实体类.
 * @author: 李启联
 * @date:   2022-8-16 16:25:07
 * @Copyright: Copyright (c) 2022
 */
@TableName("`sys_logininfor`")
public class SysLogininforEntity extends BaseEntity {
   // 用户账号
   @TableField(value = "user_name")
   private String userName;
   // 登录IP地址
   @TableField(value = "ipaddr")
   private String ipaddr;
   // 登录状态（0成功 1失败）
   @TableField(value = "status")
   private String status;
   // 提示信息
   @TableField(value = "msg")
   private String msg;
   // 访问时间
   @TableField(value = "access_time")
   @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
   private LocalDateTime accessTime;

   public String getUserName(){
        return this.userName;
   }
   public void setUserName(String userName){
        this.userName = userName;
   }
   public String getIpaddr(){
        return this.ipaddr;
   }
   public void setIpaddr(String ipaddr){
        this.ipaddr = ipaddr;
   }
   public String getStatus(){
        return this.status;
   }
   public void setStatus(String status){
        this.status = status;
   }
   public String getMsg(){
        return this.msg;
   }
   public void setMsg(String msg){
        this.msg = msg;
   }
   public LocalDateTime getAccessTime(){
        return this.accessTime;
   }
   public void setAccessTime(LocalDateTime accessTime){
        this.accessTime = accessTime;
   }

  public SysLogininforEntity(){
  }


  @Override
  public String toString(){
  return " SysLogininfor ["
    +" userName = " +userName +" ,"
    +" ipaddr = " +ipaddr +" ,"
    +" status = " +status +" ,"
    +" msg = " +msg +" ,"
    +" accessTime = " +accessTime +" ,"
  +" ]";
  }
}